From 0814cd9f8b07ada390749da9e918f7100a0e24a7 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Tue, 28 Oct 2014 18:29:02 +0100 Subject: [PATCH] GdkGlContextWayland: Don't require specific bit depths This just means we may fail to get a gl context, we just require *some* color depth. --- gdk/wayland/gdkglcontext-wayland.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gdk/wayland/gdkglcontext-wayland.c b/gdk/wayland/gdkglcontext-wayland.c index fbe79abf40..5fc320d932 100644 --- a/gdk/wayland/gdkglcontext-wayland.c +++ b/gdk/wayland/gdkglcontext-wayland.c @@ -249,11 +249,11 @@ find_eglconfig_for_window (GdkWindow *window, attrs[i++] = EGL_RGB_BUFFER; attrs[i++] = EGL_RED_SIZE; - attrs[i++] = gdk_visual_get_bits_per_rgb (visual); + attrs[i++] = 1; attrs[i++] = EGL_GREEN_SIZE; - attrs[i++] = gdk_visual_get_bits_per_rgb (visual); + attrs[i++] = 1; attrs[i++] = EGL_BLUE_SIZE; - attrs[i++] = gdk_visual_get_bits_per_rgb (visual); + attrs[i++] = 1; use_rgba = (visual == gdk_screen_get_rgba_visual (gdk_display_get_default_screen (display))); -- 2.30.2